package com.wzcl.app.model.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class AttributeDto extends BaseDto{

    @NotBlank(message = "缺少属性名称")
    @ApiModelProperty(value = "名称")
        private String name;

    @ApiModelProperty(value = "父规格")
    private Integer parentId;

    @NotNull(message = "缺少属性类型")
    @ApiModelProperty(value = "规格类型/属性值")
    private Integer type;

}
